.class Lcom/waiqin365/lightapp/kehu/an;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/an;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 5

    const/16 v4, 0x8e

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/an;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;->c(Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;)Ljava/util/ArrayList;

    move-result-object v0

    add-int/lit8 v1, p3, -0x1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/f;

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/f;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/an;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;->h(Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/kehu/CMApprovalAddActy;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "approvalInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/an;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;

    invoke-virtual {v0, v1, v4}, Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;->startActivityForResult(Landroid/content/Intent;I)V

    :goto_0
    return-void

    :cond_0
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/an;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;->i(Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/kehu/CMCustomerApprovalLogActy;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "showApproval"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "approvalInfo"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/an;->a:Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;

    invoke-virtual {v0, v1, v4}, Lcom/waiqin365/lightapp/kehu/CMApprovalListActy;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0
.end method
